package com.niit.chat.feign;

import com.niit.chat.common.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "search-service")
public interface SearchFeignClient {
    @GetMapping("/search")
    Result<?> search(@RequestParam("type") String type, @RequestParam("keyword") String keyword);
}
